package com.triangle.cashier;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.EditText;

/**
 * 修改密码页面
 */
public class UpdatePWDActivity extends AppCompatActivity {

    private EditText rePasswordET;
    private EditText passwordET;
    private Button updateBtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); //隐藏状态栏
        setContentView(R.layout.activity_update_pwd);

        initView();
        listenerView();
    }

    private void listenerView() {
        updateBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //检测用户名密码
                //界面跳转
                startActivity(new Intent(getApplicationContext(), LoginActivity.class));
                finish();
            }
        });
    }

    private void initView() {
        passwordET = (EditText) findViewById(R.id.et_pwd);
        rePasswordET = (EditText) findViewById(R.id.et_re_pwd);
        updateBtn = (Button) findViewById(R.id.btn_update);
    }
}
